<div id="usertop"><?php
if (isset($account) && $account) {
  echo "<a title=\"per {$account['type']}\">Angemeldet als</a> ", $html->link("<strong>{$account['User']['name']}</strong>", array('controller' => 'users', 'action' => 'view', $account['User']['id']), array(), FALSE, /*esc*/FALSE), "<span> | </span>";
  echo $html->link('abmelden', array('controller' => 'users', 'action' => 'logout'));
}
else {
  echo $html->link('anmelden', array('controller' => 'users', 'action' => 'login'));
}
?></div>
